<?php
class Usuarios_m extends CI_Model{
 	function __construct(){
	parent::__construct();
	}
        
        function validate_user( $username, $userpass ){
            $this->db->from('user');
            $this->db->where('username',$username );
            $this->db->where( 'userpass',$userpass);
            $login = $this->db->get();
            
            if($login->num_rows() == 1){
                return $login->result();
                }else{
                    return FALSE;
                    }
        }
        
        
     

        
        
}//Fin del modelo Usuarios_m